package org.xfy.ymcc.feign.fallback;

import feign.hystrix.FallbackFactory;
import org.xfy.common.result.JsonResult;
import org.xfy.ymcc.feign.MediaFeignClient;

public class MediaFeignClientFallbackFactory implements FallbackFactory<MediaFeignClient> {
    @Override
    public MediaFeignClient create(Throwable throwable) {
        return new MediaFeignClient() {
            @Override
            public JsonResult getMediaFileByChapterId(Long ChapterId) {
                return JsonResult.error("getMediaFileByChapterId失败");
            }
        };
    }
}
